using System;
using System.Collections.Generic;
using System.Text;
using GarageGames.Torque.GUI;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Xyne.GUI
{
    class SplashScreenGUI : GUISplash, IGUIScreen
    {
        #region Constructor
        public SplashScreenGUI()
        {
            GUISplashStyle splashStyle = new GUISplashStyle();
            splashStyle.FadeInSec = 2;
            splashStyle.FadeOutSec = 2;
            splashStyle.FadeWaitSec = 4;
            splashStyle.Bitmap = @"data\images\ui\splash\GarageGames";

            Name = "SplashScreen";
            Style = splashStyle;
            Size = Game.Instance.ClientBounds;
            OnFadeFinished = OnSplashFinished;
        }
        #endregion

        #region Public Methods
        public void OnSplashFinished()
        {
            CanvasStateMachine.Instance.NextCanvasState = CanvasStateMachine.CanvasStates.MainMenu;
        }
        #endregion
        public override void OnRender(Vector2 offset, GarageGames.Torque.MathUtil.RectangleF updateRect)
        {
            base.OnRender(offset, updateRect);
        }
    }
}
